import java.util.Scanner;

public class NumberTransport {
    // 实现数字穿越功能的方法
    static int numberTransport(int num) {
        if (num >= 0) {
            return num;
        } else {
            String numStr = String.valueOf(Math.abs(num));
            StringBuilder reversed = new StringBuilder(numStr).reverse();
            return -Integer.parseInt(reversed.toString());
        }
    }

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();

        int resultA = numberTransport(a);
        int resultB = numberTransport(b);
        int sum = resultA + resultB;

        System.out.println(sum);

        scanner.close();
    }
}